<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Resource;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/



//同步数据到es
Route::post('resource/index/createEsIndex', [Resource\IndexController::class, 'createEsIndex']); // 创建es索引
Route::post('resource/index/syncToEs', [Resource\IndexController::class, 'syncToEs']); // 同步数据到es
Route::get('resource/index/searchEs', [Resource\IndexController::class, 'searchEs']); // 检索 ES 数据 （全数据检索）
Route::get('resource/index/getSearchEsTotal', [Resource\IndexController::class, 'getSearchEsTotal']); // 获取 ES 数据总量
Route::get('resource/index/searchMysql', [Resource\IndexController::class, 'searchMysql']); // 检索 mysql 数据 （全数据检索）
Route::post('resource/index/deleteEsIndex', [Resource\IndexController::class, 'deleteEsIndex']); // 删除索引



//中文在线接口
Route::get('resource/index/zwzxBookSearch', [Resource\IndexController::class, 'zwzxBookSearch']); // 图书检索接口
Route::get('resource/index/zwzxGetBookCatalogue', [Resource\IndexController::class, 'zwzxGetBookCatalogue']); // 获取图书目录
Route::get('resource/index/zwzxSingleSign', [Resource\IndexController::class, 'zwzxSingleSign']); // 单点登录接口



//QQ阅读接口
Route::get('resource/index/qqrdBookSync', [Resource\IndexController::class, 'qqrdBookSync']); //  QQ阅读图书检索接口(数据同步到数据库)
Route::get('resource/index/qqrdBookSearch', [Resource\IndexController::class, 'qqrdBookSearch']); // 图书检索接口
Route::get('resource/index/qqrdBookDetail', [Resource\IndexController::class, 'qqrdBookDetail']); // 获取图书基本信息
Route::get('resource/index/qqrdBookType', [Resource\IndexController::class, 'qqrdBookType']); // 获取图书分类
Route::get('resource/index/qqrdTypeBookList', [Resource\IndexController::class, 'qqrdTypeBookList']); // 获得分类中书籍列表
Route::get('resource/index/qqrdUpBookList', [Resource\IndexController::class, 'qqrdUpBookList']); // 获得所有已上架图书标识
Route::get('resource/index/qqrdDownBookList', [Resource\IndexController::class, 'qqrdDownBookList']); // 获得所有已下架图书标识


//云图有声接口
Route::get('resource/index/ytysBookSync', [Resource\IndexController::class, 'ytysBookSync']); // 云图有声图书检索接口(数据同步到数据库)
Route::get('resource/index/ytysGetType', [Resource\IndexController::class, 'ytysGetType']); //  分类接口-根据父级编号获取下级分类
Route::get('resource/index/ytysGetBookTypeRelation', [Resource\IndexController::class, 'ytysGetBookTypeRelation']); //  分类接口-获取书籍分类的关系
Route::get('resource/index/ytysGetTypeBookList', [Resource\IndexController::class, 'ytysGetTypeBookList']); //  书籍接口-获取分类下包含的书籍（分页）接口数据都是上架数据需进行剔除
Route::get('resource/index/ytysGetBookInfoByBookId', [Resource\IndexController::class, 'ytysGetBookInfoByBookId']); //  书籍接口-根据书籍编号获取书籍信息
Route::get('resource/index/ytysGetBookCatalogue', [Resource\IndexController::class, 'ytysGetBookCatalogue']); //   章节接口-根据书籍ID获取书籍章节信息（分页）
Route::get('resource/index/ytysGetAudioInfo', [Resource\IndexController::class, 'ytysGetAudioInfo']); //  音频接口-获取章节有效的URL
Route::get('resource/index/ytysGetSoldOut', [Resource\IndexController::class, 'ytysGetSoldOut']); //  获取全量下架资源



